
package com.cptravel.api;

import java.util.Map;

import android.text.TextUtils;
import android.widget.ProgressBar;

import com.core.api.ApiListenrDefaultImpl;
import com.core.api.B5MBaseRequest;

public class GsearchResquest extends B5MBaseRequest<GsearchResponse>
{
    public String skey;
    public String area;
    public String typeid;
    public String priceA;
    public String priceB;

    public GsearchResquest(ApiListenrDefaultImpl apiListenrDefaultImpl, ProgressBar progressBar)
    {
        super(apiListenrDefaultImpl, progressBar);
        // TODO Auto-generated constructor stub
    }

    @Override
    public Class<GsearchResponse> getResponseClass()
    {
        // TODO Auto-generated method stub
        return GsearchResponse.class;
    }

    @Override
    public String getApiMethod()
    {
        // TODO Auto-generated method stub
        return "gsearch";
    }

    @Override
    public void setApiBody(Map<String, Object> body)
    {
        // TODO Auto-generated method stub
        body.put("skey", skey);
        body.put("area", area);
        if (!TextUtils.isEmpty(typeid))
        {
            body.put("typeid", typeid);
        }
        body.put("priceA", priceA);
        body.put("priceB", priceB);
    }
}
